<input type="button" value="Resource" class="btn btn-info" id="resource-button" />
<script type="text/javascript">
    $("#resource-button").click(function(){
        $.fancybox({
            type : "iframe",
            href : "<?php echo url('/resource', array('mode' => 'iframe')) ?>",
            width : 800,
            height : 600
        });
    });

</script>